// AWTCheckboxGroup.h: interface for the AWTCheckboxGroup class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AWTCHECKBOXGROUP_H__B9BB53A4_46F7_11D2_A6A1_0004AC24604E__INCLUDED_)
#define AFX_AWTCHECKBOXGROUP_H__B9BB53A4_46F7_11D2_A6A1_0004AC24604E__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "AWTObject.h"
#include "AWTCheckbox.h"

class AFX_EXT_CLASS AWTCheckboxGroup : public AWTObject  
{
DECLARE_DYNAMIC(AWTCheckboxGroup)
public:
	AWTCheckboxGroup();
	virtual ~AWTCheckboxGroup();

	AWTCheckbox* getSelectedCheckbox() 
		{return getCurrent();}
	AWTCheckbox* getCurrent() 
		{return m_selectedCheckbox;}
	void setSelectedCheckbox(AWTCheckbox* box) 
		{setCurrent(box);}
	void setCurrent(AWTCheckbox* box);
	BOOL isFirst()
		{return m_first;}
	void setFirst(BOOL b)
		{m_first = b;}
	void AddRef()
		{m_refCount++;}
	void Release()
	{
		m_refCount--; 
		if (m_refCount == 0) 
			delete this;
	}

protected:
	AWTCheckbox* m_selectedCheckbox;
	BOOL m_first;
	int m_refCount;
};

#endif // !defined(AFX_AWTCHECKBOXGROUP_H__B9BB53A4_46F7_11D2_A6A1_0004AC24604E__INCLUDED_)
